package com.elcom.roaming.module.synthesis.match;

import com.elcom.roaming.common.util.match.ObjectValue;

public class MSRNValue extends ObjectValue {

	private static final char ISUP = 'I';
	private static final char PRN = 'P';
	
	String calling;
	String imsi;
	String called;
	
	public MSRNValue(String calling) {
		this.type = ISUP;
		this.calling = calling;
		this.imsi = null;
		this.called = null;
	}
	
	public MSRNValue(String imsi, String called){
		this.type = PRN;
		this.imsi = imsi;
		this.called = called;
		this.calling = null;
	}
	
	@Override
	public String toString() {
		if (type == ISUP)
			return "type=ISUP" + 
				"|calling=" + calling;
		else return "type=PRN" +
				"|imsi=" + imsi +
				"|called=" + called;
	}

}
